<?php

namespace App\Admin\Actions\Show;

use App\Models\Customer;
use Dcat\Admin\Admin;
use Dcat\Admin\Http\JsonResponse;
use Dcat\Admin\Show\AbstractTool;
use Illuminate\Support\Carbon;

class CustomerReceive extends AbstractTool
{
    protected $title = '领取';

    public function handle()
    {
        Customer::ooaReceive($this->getKey());
        return JsonResponse::make()->success('操作成功')->refresh();

    }

    public function confirm()
    {
        return ['您确定要领取吗？',''];
    }

}
